//
//  HomeSearchTextField.m
//  ExhibitionHall
//
//  Created by 王洋 on 2019/6/5.
//  Copyright © 2019 王洋. All rights reserved.
//

#import "HomeSearchTextField.h"

@implementation HomeSearchTextField

- (CGRect)leftViewRectForBounds:(CGRect)bounds
{
    CGRect iconRect = [super leftViewRectForBounds:bounds];
    iconRect.origin.x += 8; //像右边偏15
    return iconRect;
}

//UITextField 文字与输入框的距离
- (CGRect)textRectForBounds:(CGRect)bounds{
    
    return CGRectInset(bounds, 35, 0);
    
}

//控制文本的位置
- (CGRect)editingRectForBounds:(CGRect)bounds{
    
    return CGRectInset(bounds, 35, 0);
}

@end
